package com.icart.entities;

import javax.persistence.*;

@Entity
@Table(name = "bi_carbrand", schema = "ams", catalog = "")
public class BiCarbrandEntity {
    private String brandid;
    private String brandname;
    private String brandlogo;
    private String firstchar;
    private Integer ishot;

    @Id
    @Column(name = "brandid")
    public String getBrandid() {
        return brandid;
    }

    public void setBrandid(String brandid) {
        this.brandid = brandid;
    }

    @Basic
    @Column(name = "brandname")
    public String getBrandname() {
        return brandname;
    }

    public void setBrandname(String brandname) {
        this.brandname = brandname;
    }

    @Basic
    @Column(name = "brandlogo")
    public String getBrandlogo() {
        return brandlogo;
    }

    public void setBrandlogo(String brandlogo) {
        this.brandlogo = brandlogo;
    }

    @Basic
    @Column(name = "firstchar")
    public String getFirstchar() {
        return firstchar;
    }

    public void setFirstchar(String firstchar) {
        this.firstchar = firstchar;
    }

    @Basic
    @Column(name = "ishot")
    public Integer getIshot() {
        return ishot;
    }

    public void setIshot(Integer ishot) {
        this.ishot = ishot;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BiCarbrandEntity that = (BiCarbrandEntity) o;

        if (brandid != null ? !brandid.equals(that.brandid) : that.brandid != null) return false;
        if (brandname != null ? !brandname.equals(that.brandname) : that.brandname != null) return false;
        if (brandlogo != null ? !brandlogo.equals(that.brandlogo) : that.brandlogo != null) return false;
        if (firstchar != null ? !firstchar.equals(that.firstchar) : that.firstchar != null) return false;
        if (ishot != null ? !ishot.equals(that.ishot) : that.ishot != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = brandid != null ? brandid.hashCode() : 0;
        result = 31 * result + (brandname != null ? brandname.hashCode() : 0);
        result = 31 * result + (brandlogo != null ? brandlogo.hashCode() : 0);
        result = 31 * result + (firstchar != null ? firstchar.hashCode() : 0);
        result = 31 * result + (ishot != null ? ishot.hashCode() : 0);
        return result;
    }
}
